/*
 * @Date: 2023-06-14 09:37:58
 * @LastEditors: jia58960 547221469@qq.com
 * @LastEditTime: 2023-06-14 14:17:29
 * @FilePath: \vue3-icloud-web\src\utils\auth.ts
 */
import Cookies from 'js-cookie'

const TokenKey = 'access_token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return token && Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
